﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace TARS.AdminCP.MasterPage
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            String ee = Request.Url.GetLeftPart(UriPartial.Authority);
            if (Session["UserID"] == null)
                Response.Redirect("AdminLogin.aspx");
            else
            {
                if (Session["UserType"].ToString().Trim() != "Admin")
                {
                    foreach (RadMenuItem get in RadMenu1.Items)
                    {
                        if (get.Text != "Delivery Manager")
                            get.Visible = false;
                    }
                }
            }
        }
    }
}